#coding=utf-8



dict1 = { "pageSize": "30", "product": "EFund", "DISCOUNT": "", "SortColumn": "SYL_Y", "MobileKey": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353", "BUY": "true", "appType": "ttjj", "LevelOne": "", "version": "6.3.2", "onFundCache": "3", "Sort": "desc", "pageIndex": "1", "FundType": "6", "CompanyId": "", "plat": "Android", "TOPICAL": "", "ENDNAV": "", "LevelTwo": "", "ISABNORMAL": "true", "DataConstraintType": "0", "gToken": "ceaf-236567466abfda4e2864831ea5645231", "ESTABDATE": "6", "deviceid": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353" }

dict2 = { "version": "6.3.2", "pageSize": "30", "product": "EFund", "DISCOUNT": "", "CLTYPE": "", "SortColumn": "SYL_Y", "MobileKey": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353", "BUY": "true", "appType": "ttjj", "RISKLEVEL": "", "igggggnoreburst": "true", "RLEVEL_SZ": "5,4,3", "Sort": "desc", "pageIndex": "1", "FundType": "0", "CompanyId": "", "plat": "Android", "TOPICAL": "", "ENDNAV": "", "ISABNORMAL": "true", "DataConstraintType": "0", "gToken": "ceaf-236567466abfda4e2864831ea5645231", "ESTABDATE": "6", "deviceid": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353" }

chake1 = {}
cha1 = dict1.keys() - dict2.keys()
for k in cha1:
	chake1[k] = dict1[k]

print("dict1比dict2多了以下键值：")
print(chake1)


chake2 = {}
cha2 = dict2.keys() - dict1.keys()
for k in cha2:
	chake2[k] = dict2[k]

print("dict2比dict1多了以下键值：");
print(chake2)


print("dict1与dict2值存在差异的如下")
for k in (dict1.keys() & dict2.keys()):
	if dict1[k] != dict2[k]:
		print("dict1[{0}]={1}, dict1[{0}]={2}".format(k, dict1[k], dict2[k]))